package sunwul.hospital.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import sunwul.hospital.model.model.cmn.Dict;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author sunwul
 * @date 2023/11/1 0:00:00
 * @description
 */
public interface DictService extends IService<Dict> {

    //根据数据id查询子数据列表
    List<Dict> findChildData(Long id);

    // 导出数据字典
    void exportDictData(HttpServletResponse response);

    // 导入数据字典
    void importDictData(MultipartFile file);

    // 根据dictCode获取下级节点
    List<Dict> findByDictCode(String dictCode);
}
